let arr=[10,20,30,40,50,6,7,9,100]
function arrSum(arr){
    let sum=0;
    for ( let i of arr ){
        sum+=i
    }
    return sum
}
console.log(arrSum(arr));